<? include('header.php'); ?>

<h2>Edit post <?=$post['title']?></h2>

<form method="post" action="<?=base_url()?>/edit/<?=$post['id']?>">
Title <br/>
<input type="text" name="title" value="<?=$post['title']?>" /><br/>
Date <br/>
<input type="text" name="date" value="<?=$post['date']?>" /><br/>
Text<br/>
<textarea name="text"><?=$post['text']?></textarea><br/>
<input type="hidden" name="id" value="<?=$post['id']?>" />
<input type="submit" value="Edit" />
</form>

<? include('footer.php'); ?>
